-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 added docker hub registry auth to director-v2 when creating services ⚠️ #8321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎨 added docker hub registry auth to director-v2 when creating services ⚠️ #8321
Conversation
...ices/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_api/_core.py
Outdated
Show resolved
Hide resolved
...ices/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_api/_core.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds Docker Hub registry authentication to the director-v2 service creation process. The main purpose is to enable authentication when pulling Docker images from Docker Hub, which was previously missing and causing failures when trying to use images from Docker Hub.
- Adds authentication support to the
create_service_and_get_idfunction - Updates all test calls to include the new authentication parameter
- Modifies the service creation logic in the scheduler to pass Docker Hub registry settings
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_api/_core.py |
Updates the core service creation function to accept and use Docker Hub registry authentication settings |
services/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/scheduler/_core/_event_create_sidecars.py |
Modifies the scheduler to pass app settings for Docker Hub authentication when creating services |
services/director-v2/tests/unit/with_dbs/test_modules_dynamic_sidecar_docker_api.py |
Updates all test calls to include the new authentication parameter with None values |
...ices/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_api/_core.py
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8321 +/- ##
===========================================
- Coverage 89.58% 68.77% -20.81%
===========================================
Files 1744 760 -984
Lines 68230 34871 -33359
Branches 828 175 -653
===========================================
- Hits 61124 23983 -37141
- Misses 6886 10831 +3945
+ Partials 220 57 -163
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
...ices/director-v2/src/simcore_service_director_v2/modules/dynamic_sidecar/docker_api/_core.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍🏻
|



What do these changes do?
Adds authentication when services are created via
director-v2. This was missing and was causing images on Docker Hub to not be used.Related issue/s
How to test
Dev-ops⚠️
DIRECTOR_V2_DOCKER_HUB_REGISTRY={}which means it loads the credentials for our internal registry. Please change this so it uses the appropriate settings @YuryHrytsuk